/*
 * @Description: 填报周期
 * @Author: oooh
 * @Date: 2024-04-16 14:23:46
 * @LastEditors: oooh
 * @LastEditTime: 2024-05-22 14:34:18
 * @FilePath: \Civil_Servant_Performance_PC\src\api\work\filling-cycle\index.js
 */
import request from '@/utils/request'

// 查询
export function list(query) {
  return request({
    url: '/api/workDeclareTerms',
    method: 'get',
    params: query
  })
}
// 新增
export function add(data) {
  return request({
    url: '/api/workDeclareTerms',
    method: 'post',
    data: data
  })
}
// 修改
export function update(data) {
  return request({
    url: '/api/workDeclareTerms',
    method: 'put',
    data: data
  })
}
// 详情
export function detail(query) {
  return request({
    url: '/api/workDeclareTerms',
    method: 'get',
    params: query
  })
}
// 删除
export function remove(query) {
  return request({
    url: '/api/workDeclareTerms/' + query.id,
    method: 'delete'
  })
}
